#20183122陈介
import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("127.0.0.1", 1000))
string = input("请输入传输内容：")
s.sendall(string.encode())
data = s.recv(1024)
print(data.decode())
s.close()